package com.atguigu.lease.web.admin.custom.converter;

import com.atguigu.lease.model.enums.ItemType;
import org.springframework.core.convert.converter.Converter;
import org.springframework.format.Formatter;
import org.springframework.stereotype.Component;

import java.text.ParseException;
import java.util.Locale;

@Deprecated
@Component
public class ItemTypeToStringConverter implements Converter<ItemType,String> {


    @Override
    public String convert(ItemType source) {
        return String.valueOf(source.getCode());
    }
}
